#ifndef AMPLPROGRAMWINDOW_H
#define AMPLPROGRAMWINDOW_H

#include <QWidget>
#include <QTableWidget>
#include <QTableWidgetItem>
#include <QObject>
#include <QVBoxLayout>
#include <dbHelper.h>
#include <QShowEvent>
#include <QDebug>
#include <CommonHelper.h>
#include <loghelper.h>
#include <QLabel>
#include <QPainter>
#include <QColor>
#include <QDomDocument>
#include <tcpclient.h>

class TriangleCornerLabel3 : public QLabel {
protected:
    void paintEvent(QPaintEvent *event) override;

public:
    // 默认构造函数
    TriangleCornerLabel3(QWidget *parent = nullptr) : QLabel(parent) {
    }
};

namespace Ui {
class amplprogramwindow;
}

class amplprogramwindow : public QWidget
{
    Q_OBJECT

public:
    explicit amplprogramwindow(QWidget *parent = nullptr);
    ~amplprogramwindow();

signals:
    void changeMainWindow();
    void changeAmplStepWindow(QString guid);
    void changeAmplStepReadWindow(QString guid);
private slots:

    void on_addAmplStepBtn_clicked();
    void on_returnMainWinBtn_clicked();
    void delBtnClicked();
    void defaultBtnClicked();
    void viewBtnClicked();
    void on_pushButton_5_clicked();

    void on_pushButton_clicked();
private:
    void resizeEvent(QResizeEvent *event) override;
    void refShadeWindow();
    void showEvent(QShowEvent *event) override;

private:
    Ui::amplprogramwindow *ui;
    void RefreshTableData();
    CommonHelper *common;
    loghelper *logClient;
    TcpClient *tcpClient;
    QWidget*  mpShadeWindow;

};

#endif // AMPLPROGRAMWINDOW_H
